package com.sdruixinggroup.mondayb2b.adapter;

import android.view.View;
import android.widget.TextView;

import com.sdruixinggroup.mondayb2b.R;
import com.sdruixinggroup.mondayb2b.models.MessagetBeen;

/**
 * Created by 00029935 on 2017/11/17.
 */

public class MessageOneAdapter extends QuickAdapter<MessagetBeen.MessagesBean.DataBean> {
    @Override
    public int getLayoutID(int viewType) {
        return R.layout.message_one_adapter;
    }

    @Override
    public void convert(VH holder, MessagetBeen.MessagesBean.DataBean itemData, int position) {
        TextView tvContent = holder.getView(R.id.tv_content);
        tvContent.setText(itemData.getContent());

        TextView time = holder.getView(R.id.tv_time);
        time.setText(itemData.getCreated_time());
        if(position == 0){
            time.setVisibility(View.VISIBLE);
        }else {
            time.setVisibility(View.VISIBLE);
        }
    }
}
